<?php
/**
* Creates a text input
*
*/
class Text extends input
{
    /**
    * The text constructor
    * @param $id string the html id attribute
    * @param $value the value of the field
    * @param $class the css class (class html attribute)
    * @param $label the form label
    */
    function Text($id=NULL, $value=NULL, $class=NULL, $label=NULL)
    {
        parent::Input($id ,"text", $class, $label);
        $this->addAttribute('value', $value);
    }
}
?>